package com.bjpowernode.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    int id;
    String st;
    @NotNull(message = "电话不能为空")
    @Size(min = 3, max = 20, message = "电话号码长度为3-20")
    String tel;
    @NotNull(message = "留言不能为空")
    @Size(min = 10, max = 200, message = "留言长度为10-200")
    String info;
}
